package com.mmt.www.head.member;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.ui.Model;

/**
 * @author 민종근
 * 회원정보 서비스 담당
 **/
@Service(value = "MemberService")
public class MemberServiceImpl {
	
	@Autowired
	private MemberDao memberDao;
	
	/** 회원목록 조회*/
	public String memberSelect(Model model, String searchCode){
		
		model.addAttribute("memberList", memberDao.memberSelect(searchCode));
		
		return "member/member_list";
	}
	
	/** 회원 상세 페이지*/
	public String memberDetail(Model model, String mart_code){
		
		model.addAttribute("memberDetail", memberDao.memberDetail(mart_code));
		
		return "member/member_detail";
	}
}
